package cn.demoncat.util.mysql.entity;

/**
 * Mysql用户
 *
 * @author 延晓磊
 * @since 2020年10月09日
 */
public class MysqlUser {

    // 用户
    private String user;
    // HOST
    private String host;
    // 最后修改密码的时间
    private String pwdLast;
    // 是否锁定
    private String isLock;
    // 权限
    private String selectPriv;
    private String insertPriv;
    private String updatePriv;
    private String deletePriv;
    private String alterPriv;
    private String processPriv;
    // 连接
    private String currConn;
    private String totalConn;

    public MysqlUser(String user, String host, String pwdLast, String isLock, String selectPriv, String insertPriv, String updatePriv, String deletePriv, String alterPriv, String processPriv) {
        this.host = host;
        this.user = user;
        this.pwdLast = pwdLast;
        this.isLock = isLock;
        this.selectPriv = selectPriv;
        this.insertPriv = insertPriv;
        this.updatePriv = updatePriv;
        this.deletePriv = deletePriv;
        this.alterPriv = alterPriv;
        this.processPriv = processPriv;
    }

    public MysqlUser(String user, String host, String currConn, String totalConn) {
        this.host = host;
        this.user = user;
        this.currConn = currConn;
        this.totalConn = totalConn;
    }

    public MysqlUser() {
        super();
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public String getPwdLast() {
        return pwdLast;
    }

    public void setPwdLast(String pwdLast) {
        this.pwdLast = pwdLast;
    }

    public String getIsLock() {
        return isLock;
    }

    public void setIsLock(String isLock) {
        this.isLock = isLock;
    }

    public String getSelectPriv() {
        return selectPriv;
    }

    public void setSelectPriv(String selectPriv) {
        this.selectPriv = selectPriv;
    }

    public String getInsertPriv() {
        return insertPriv;
    }

    public void setInsertPriv(String insertPriv) {
        this.insertPriv = insertPriv;
    }

    public String getUpdatePriv() {
        return updatePriv;
    }

    public void setUpdatePriv(String updatePriv) {
        this.updatePriv = updatePriv;
    }

    public String getDeletePriv() {
        return deletePriv;
    }

    public void setDeletePriv(String deletePriv) {
        this.deletePriv = deletePriv;
    }

    public String getAlterPriv() {
        return alterPriv;
    }

    public void setAlterPriv(String alterPriv) {
        this.alterPriv = alterPriv;
    }

    public String getProcessPriv() {
        return processPriv;
    }

    public void setProcessPriv(String processPriv) {
        this.processPriv = processPriv;
    }

    public String getCurrConn() {
        return currConn;
    }

    public void setCurrConn(String currConn) {
        this.currConn = currConn;
    }

    public String getTotalConn() {
        return totalConn;
    }

    public void setTotalConn(String totalConn) {
        this.totalConn = totalConn;
    }
}
